<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			
			function foo(e)
			{
				// KeyboardEvent对象
				// e 键盘事件对象				
				console.log(e);
				
				console.log(e.key);
				console.log(e.ctrlKey);
				console.log(e.shiftKey);
				console.log(e.altKey);
				
				if(e.ctrlKey && e.shiftKey && e.altKey)
				{
					alert("你同时按下了3个功能键");
				}
			}			
			
			// document 页面文档对象
			// onkeydown 按键按下的事件
			document.onkeydown = foo;
			
			
		</script>
	</body>
</html>